<?php
/**
 * Created by PhpStorm.
 * User: yandian
 * Date: 16/8/7
 * Time: 10:45
 */

namespace app\common\controller;


use app\common\util\weixin\OAuth;
use app\common\util\weixin\WxApi;

class WxBase extends LiteBase
{
    public function getOpenid()
    {
        WxApi::init();
        $openid = OAuth::getOpenid();
        if (empty($openid)) {
            exit(0);
        }
        return $openid;
    }
}